﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using FwProject.ShoppingMall.Com;

namespace FwProject.Com.Dto
{
    /// <summary>
    ///App订单明细
    /// </summary>
    [AutoMap(typeof(ShopOrderDetails))]
    public class ShopOrderAppDetailsDto : EntityDto<Guid>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Display(Name = "用户编号")]
        public long UserId { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        [Required]
        [Display(Name = "订单号")]
        public string OrderNumber { get; set; }
        
        /// <summary>
        /// 购买数量
        /// </summary>
        [Display(Name = "购买数量")]
        public int ProductCount { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        [Display(Name = "商品编号")]
        public Guid ShopproductId { get; set; }

        /// <summary>
        /// 付款时单价
        /// </summary>
        [Display(Name = "付款时单价")]
        public decimal PayPrice { get; set; }

        /// <summary>
        /// 付款时单价
        /// </summary>
        [Display(Name = "付款时原始单价")]
        public decimal MarketPrice { get; set; }

        /// <summary>
        /// 评价
        /// </summary>
        [Display(Name = "评价状态")]
        public EvaluateStatus EvaluateStatus { get; set; } = EvaluateStatus.未评价;
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ShopName { get; set; }

        /// <summary>
        /// sku名称
        /// </summary>
        public string SkuName { get; set; }


        /// <summary>
        /// 商品下单时图片
        /// </summary>
        public string ShopImagePic { get; set; }

    }

}
